package gr.aueb.cs.mscis.chordroid;

import gr.aueb.cs.mscis.R;
import gr.aueb.cs.mscis.chordroid.chord.Node;
import android.app.Activity;
import android.os.Bundle;
import android.widget.TextView;

public class MainActivity extends Activity {


	public void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.main);
		long start = System.currentTimeMillis();
		Node myLuckyNode=new Node();
	//	myLuckyNode.setNodeInfoActivity(this);
		Thread t = new Thread(myLuckyNode);
		t.start();
		

	}
	public  void setMySuccessorInfo(String hash){
		((TextView)findViewById(R.id.textView3)).setText(String.valueOf("My successor is: "+ hash));

	}

	public  void setMyPredeccessprInfo(String hash){
		((TextView)findViewById(R.id.textView4)).setText(String.valueOf("My successor is: "+ hash));
	}

	public  void setMyInfo(String hash){
		((TextView)findViewById(R.id.textView2)).setText(String.valueOf("My successor is: "+ hash));
	}
}
